Render basic tables and detect them in rules#507
Render basic tables and detect them in rules#507masonium wants to merge 9 commits intodaisy:mainfrom
Conversation
find rowspan or colspan attributes only on children and grandchildren of mtable element
Any thoughts? |
|
Using frame, etc., is a good idea and will work for legacy MathML so we should keep it. However, in MathML core (which is the future), mtable are supposed to be styled with CSS so that info won't likely be around unless it is a local CSS style ( One option is to look at the parent of the table and see if has delimiters around it (parens, brackets, vertical bars, double vertical bars, ???). Comments on the code:
xpath-functions.rs:
mtable.rs:
|
Addresses issue #283 .
This PR adds some internal functions to compute table dimensions (rows and columns) taking
rowspans andcolspans into account, and uses them to render tables with the:arrayintent as "table with m rows and n columns".I'm not super happy with the current logic to detect that an unspecified
mtableshould have an:arrayintent. Right now, it assumes that anymtablethat either renders its frame assolidordashedor has anmrowormtdthat specifies arowspanorcolspanshould be an:array. I think we want something more general, though.